<template>
  <h1>我是子组件Demo2</h1>
  <h2>Demo2点击的坐标: X:{{ point.x }},Y:{{ point.y }}</h2>
</template>
<script>
import { usePoint } from '@/hooks/usePoint'
export default {
  nanme: 'Demo2',
  setup() {
    const point = usePoint()

    return {
      point,
    }
  },
}
</script>
